<?php
namespace app\mobile\controller;

use think\Controller;

class MobileBase extends Controller
{
    protected function _initialize()
    {
        if(strstr($_SERVER['HTTP_USER_AGENT'],'MicroMessenger')){
            echo 'isWechat';
        }
    }
}